<?php

class Filter_TableStartsWith {

	var $sStartsWithString;
	
	function Filter_TableStartsWith( $sStartsWithString ){
		$this->sStartsWithString = trim( strtoupper( $sStartsWithString ) );
	}

	function ShouldIncludeTable( $sTableName ) {
		$sTableName = trim( strtoupper( $sTableName ) );
		if ( $this->sStartsWithString ) {
			return ( strpos( $sTableName, $this->sStartsWithString ) === 0 );
		}
		return true;
	}
}


?>